package org.springframework.beans.factory;

import org.springframework.beans.BeansException;

import java.util.List;

/**
 * @author xiaohei
 */
public interface ListableBeanFactory extends BeanFactory {

    /**
     * getBeanDefinitionNames
     *
     * @return
     */
    String[] getBeanDefinitionNames();

    /**
     * getBeanOfType
     *
     * @param requiredType
     * @return
     * @throws BeansException
     */
    <T> List<T> getBeanOfType(Class<T> requiredType) throws BeansException;
}
